package com.syyo.gulimall.member.feign;

import com.syyo.common.domain.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @author wang
 * @date: 2021/1/20 11:22
 * @Description: gulimall-coupon：远程调用的服务名称
 */
@FeignClient("gulimall-order")
public interface OrderFeign {

    @PostMapping("/order/order/listWithItem/{pageNum}/{pageSize}")
    ResultVo listWithItem(@PathVariable("pageNum") Integer pageNum,
                          @PathVariable("pageSize") Integer pageSize,
                          @RequestBody Map<String, Object> params);
}
